package com.powervision.mvvmdemo.ui.repository

import com.powervision.http.base.BaseRepository
import com.powervision.http.entity.ApiResponse
import com.powervision.mvvmdemo.ui.http.RetrofitClient
import com.powervision.mvvmdemo.ui.model.HotKeyModel

/**
 * @auth: njb
 * @date: 2021/12/21 11:21
 * @desc: 描述
 */
class HotKeyRepository:BaseRepository() {
    private val mHotKeyRepository  by lazy {
        RetrofitClient.service
    }

    suspend fun hotkey():ApiResponse<List<HotKeyModel>>{
        return executeHttp{
            mHotKeyRepository.hotKey()
        }

    }
}